package ${poPkg};

<#if swaggerEnable?? && swaggerEnable == 1>
import io.swagger.annotations.ApiModelProperty;
</#if>
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

<#if poImportPkgs??>
<#list poImportPkgs as importPkg>
import ${importPkg};
</#list>
</#if>

/**
 * ${(remark)!""}
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value="${tableName}")
public class ${poName} implements Serializable {
    private static final long serialVersionUID = -${poSerialVersionUID}L;

	<#list fields as field>
	<#if swaggerEnable?? && swaggerEnable == 1>
	@ApiModelProperty(value = "${((field.remark!"")?replace("\r\n",""))?replace("  ", "")}")
	<#else>
	/**
	 * ${(field.remark)!""}
	 */
	</#if>
	<#if primaryKey?? && field.column == primaryKey>
    @TableId(value = "${primaryKey}", type = <#if autoincrement?? && autoincrement =="YES">IdType.AUTO<#else>IdType.INPUT</#if>)
    </#if>
	private ${field.javaType} ${field.fieldName};
	</#list>

}